
var newsTable;
//
function queryAllcountLive(lid) {
	if (typeof newsTable !== 'undefined') {
		newsTable.fnPageChange('first');
		return;
	}
	var i = 1;
	newsTable = $("#newsList").DataTable({
		"sAjaxSource" : _path + "/countLive/liveCountXbQueryByPage",
		"fnServerParams" : function(aoData) {
			aoData.push({
				"name" : "id",
				"value" : lid
			});
		},
		"sServerMethod" : "POST",
		"sAjaxDataProp" : "dataList",
		"fnCreatedRow" : function() {
			i++;
		},
		"fnPreDrawCallback" : function() {
			i = 1;
		},
		"aoColumns" : [ {
			"sTitle" : "序号",
			"sWidth" : "2%",
			"mData" : function() {
				return i;
			}
		}, {
			"sTitle" : "直播开始时间",
			"mData" : "fromDate",
			"sWidth" : "10%"
		}, {
			"sTitle" : "直播结束时间",
			"mData" : "toDate",
			"sWidth" : "10%"
		}, {
			"sTitle" : "男性访问页面人数",
			"mData" : "bb",
			"sWidth" : "10%"
		}, {
			"sTitle" : "女性访问页面人数",
			"mData" : "cc",
			"sWidth" : "10%"
		}, {
			"sTitle" : "其他访问页面人数",
			"mData" : "dd",
			"sWidth" : "10%"
		}]
	});
}